/*
2022-3-6 
https://www.acwing.com/problem/content/4312/
*/
#include<cstring>
#include<iostream>
#include<algorithm>
#include<set>

using namespace std;
typedef pair<int,int> PII;

int gcd(int a,int b)
{
    return b?gcd(b,a%b):a;
}

int main()
{
    int n,x0,y0;
    cin>>n>>x0>>y0;
    
    set<PII> S;
    
    while(n--)
    {
        int x,y;
        cin>>x>>y;
        x-=x0,y-=y0;
        int d=gcd(x,y);
        x/=d,y/=d;
        if(x<0) x=-x,y=-y;
        S.insert({x,y});
    }
    cout<<S.size()<<endl;
    return 0;
}

